import 'package:flutter_riverpod/flutter_riverpod.dart';

import '../domain/cart.dart';

abstract class RemoteCartRepository {
  Future<Cart> fetchCart(String userId);

  Stream<Cart> watchCart(String userId);

  Future<void> setCart(String userId, Cart cart);
}

final remoteCartRepositoryProvider = Provider<RemoteCartRepository>((ref) {
  throw UnimplementedError();
});
